<template>
	<div class="present_control">
		<h3>{{list.title}}</h3>
		<div v-html="list.content"></div>
	</div>
</template>

<script>
	export default{
		data(){
			return {
				id:this.$route.params.id,
				list:{}
			}
		},
		created(){
			this.getInfos()
		},
		methods: {
			getInfos() {
				this.$http.get('api/goods/getdesc/'+this.id).then((resolve)=>{
					if (resolve.body.status == 0)  {
						this.list = resolve.body.message[0];
					} else{
						
					}
				},(reject)=>{
					
				})
			}
		},
	}
</script>

<style lang="less">
	.present_control{
		h3{
			padding: 20px 10px;
		}
		div{
			margin: 0 10px 4em 10px;
		}
		img{
			width: 100%!important;
			margin: 0;
			padding: 0;
		}
	}
</style>
